package com.common.retrofit.methods;

import com.common.retrofit.base.BaseMethods;
import com.common.retrofit.service.HaiNingService;

import rx.Observable;
import rx.Subscriber;

public class GoSettingMethods extends BaseMethods {

    private static GoSettingMethods m_ins = null;

    public static GoSettingMethods getInstance() {
        if (m_ins == null) {
            synchronized (GoSettingMethods.class) {
                if (m_ins == null) {
                    m_ins = new GoSettingMethods();
                }
            }
        }
        return m_ins;
    }

    @Override
    protected String getHttpUrl() {
        return "Personal/";
    }

    private HaiNingService initService() {
        return getRetrofit().create(HaiNingService.class);
    }


    public void set_fee(Subscriber<Object> subscriber,
                      int uid ,
                      String hashid,String service_fee,String   is_video,String is_stealth ) {
        Observable observable = initService().set_fee(System.currentTimeMillis()+"",
                "223736fae62cd95a4af1d3cddb460a73",uid,hashid,service_fee,is_video,is_stealth
        );
        toSubscribe(observable, subscriber);
    }
}
